package com.cyj.springbootservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cyj.springbootservice.api.entity.SysDept;
import com.cyj.springbootservice.api.entity.SysDeptRelation;

/**
 * @description:
 * @Author C_Y_J
 * @create 2022/5/10 10:40
 **/
public interface SysDeptRelationService extends IService<SysDeptRelation> {

    /**
     * 新建部门关系
     * @param sysDept 部门
     */
    void insertDeptRelation(SysDept sysDept);

    /**
     * 通过ID删除部门关系
     * @param id
     */
    void deleteAllDeptRealtion(Integer id);

    /**
     * 更新部门关系
     * @param relation
     */
    void updateDeptRealtion(SysDeptRelation relation);

}
